package io.renren.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.renren.common.service.impl.CrudServiceImpl;
import io.renren.dao.CollarmxTemDao;
import io.renren.dto.CollarmxTemDTO;
import io.renren.entity.CollarmxTemEntity;
import io.renren.service.CollarmxTemService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 辅材领用详情记录表
 *
 * @author ÂÞÊ¤Æ½ sunlightcs@gmail.com
 * @since 1.0.0 2020-01-16
 */
@Service
public class CollarmxTemServiceImpl extends CrudServiceImpl<CollarmxTemDao, CollarmxTemEntity, CollarmxTemDTO> implements CollarmxTemService {

    @Override
    public QueryWrapper<CollarmxTemEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<CollarmxTemEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StringUtils.isNotBlank(id), "id", id);

        return wrapper;
    }


}